var spawn = require('child_process').spawn;

o2o_build = spawn('fis', ['release', '-d', '../output', '-o']);
console.info('O2O前端开启FIS编译');
o2o_build.stdout.on('data', function(data) {
	console.log("O2O前端编译：", data.toString());
});
o2o_build.stderr.on('data', function(data) {
	console.error("O2O前端编译错误：", data.toString());
});
o2o_build.on('error', function(code) {
	console.info('O2O前端编译启动出错', code.toString());
});
o2o_build.on('close', function(code) {
	console.info('O2O前端编译关闭', code.toString());
});